import React from 'react'
import ReactDOM from 'react-dom/client'

import App from './App'
import store from './store'
const root = ReactDOM.createRoot(document.querySelector('#root'))

// 实现了，但是不调好
// store.subscribe(()=>{
//     root.render(<App/>)
// })
root.render((
    <>
        <App/>
    </>
))